package top.malaoshi.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.malaoshi.model.JsonResult;

@RestController
@RequestMapping("/error")
public class ErrorCtrl {

    @RequestMapping("/404")
    public JsonResult handel404(){
        return new JsonResult(404,"找不到页面！");
    }


//    @RequestMapping("/500")
//    public JsonResult handel500(){
//        return new JsonResult(500,"找不到页面！");
//    }
}
